import requests

url = "https://movie.douban.com/j/search_subjects"
# 重新封装参数
param = {
    "type": "movie",
    "tag": "%E7%83%AD%E9%97%A8",
    "page_limit": 50,
    "page_start": 0
}

headers = {
    "user-agent":
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0"
}

resp = requests.get(url=url, params=param,headers=headers)
print(resp.json())
